﻿@{
    Layout = null;
}
@using MvcMall.AdminPortal.Controllers.Store.ViewModels
@using MvcMall.Framework.MvcPager;
@model PagedList<StoreModel>
<!DOCTYPE html>
<html>
<head>
    <title>网商审核</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/themes/base/jquery-ui.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
</head>
<body>
    <div id="pageList">
        <script type="text/javascript">
            $(function () {
                $("#tabs").tabs({
                    cache: false
                });
            });  
        </script>
        <div id="tabs">
            <ul>
                <li><a href="#menuList">网商审核</a> </li>
            </ul>
            <div id="menuList">
                <table width="100%">
                    <tr>
                        <th>
                            网商ID
                        </th>
                        <th>
                            店主姓名
                        </th>
                        <th>
                            店铺名称
                        </th>
                        <th>
                            店铺类别
                        </th>
                        <th>
                            网商等级
                        </th>
                        <th>
                            网商推荐人
                        </th>
                        <th>
                            申请时间
                        </th>
                        <th>
                        </th>
                    </tr>
                    @if (Model != null && Model.Count > 0)
                    {
                        foreach (var item in Model)
                        {
                        <tr>
                            <td>
                                @item.StoreId
                            </td>
                            <td>
                                @item.OwnerName
                            </td>
                            <td>
                                @item.StoreName
                            </td>
                            <td>
                                @item.StoreTypeNames
                            </td>
                            <td>
                                @item.StoreGradeName
                            </td>
                            <td>
                                @item.PromoteUser
                            </td>
                            <td>
                                @item.CreateTime
                            </td>
                            <td>
                                @Html.ActionLink("查看详情", "StoreDetails", new { @storeId = item.StoreId })
                                @Html.ActionLink("审核通过", "StorePass", new { @storeId = item.StoreId })
                            </td>
                        </tr>
                        } 
                    }
                </table>
                @Html.AjaxPager(Model, new AjaxOptions { UpdateTargetId = "pageList" })
            </div>
        </div>
    </div>
</body>
</html>
